<%-- 
    Document   : login
    Created on : 6 січ 2011, 5:03:42
    Author     : Admin
--%>

<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<link type="text/css" rel="stylesheet" media="all" href="/styles.css" />

<fmt:setBundle basename="exsysBundle"/>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><fmt:message key="login.welcome"/></title>
    </head>
    <body>
        <c:if test="${sessionScope.authorized}">
            <c:redirect url="auth/index.jsp" />
        </c:if> 
        <h1><fmt:message key="login.loginInvite"/></h1>
        <h1 class="errormsg"><c:if test="${noSuchUser}"><fmt:message key="login.noSuchUser"/></c:if></h1>
        <h1 class="errormsg"><c:if test="${wrongPassword}"><fmt:message key="login.wrongPassword"/></c:if></h1>


        <form style="background-color: #ffffff; font-family:arial; padding:5px 0 30px 0; height:100%" method="POST" action="/auth/index.jsp" >

            <div class="input-names">
                <fmt:message key="login.login"/>     <br />
                <fmt:message key="login.password"/>   <br />
            </div>
            <div class = "input-items">
                <input class = "input" type="text"  value="${param.login}"   name="login" > <br />
                <input class = "input" type="password" value="${param.password}" name="password" />  <br />
                <button type="submit"> <fmt:message key="login.trylogin"/> </button>
            </div>
        </form>

    </body>
</html>
